<?php
require("../../../class2.php");
require("../library/admin/adminapi.php");

if(!getperms("P")){header("location:".e_BASE."index.php"); exit; }
require_once(e_ADMIN."auth.php");

if($_POST["subbed"])
{
    e107shop_process_function($_POST["faction"], $_POST["function_name"], $_POST["function"], $_POST["attributeid"]);
}

//
// Display the list of functions
//
e107shop_product_current_functions($_GET["g"]);

//
// Display the form
//
e107shop_manage_function($_GET["a"], $_GET["p"]);

require_once(e_ADMIN."footer.php");
